package cc.w3d.jawos.apps.artiks.manager.client.rpc;

import java.util.List;

import cc.w3d.jawos.apps.artiks.manager.client.beans.Article;
import cc.w3d.jawos.apps.artiks.manager.client.beans.ResourceItem;
import cc.w3d.jawos.apps.artiks.manager.client.beans.ResourceType;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("artiksManager")
public interface ArtiksManagerService extends RemoteService
{
	public List<ResourceItem> getChilds(String id);
	public ResourceItem addChild(String parentResourceId, ResourceType type, String name);
	public void removeItem(String itemId);
	public Article getArticle(String itemId);
	public void setArticle(String itemId, Article article);
	public List<Article> getArticles(int n);
	public int countArticles();
}
